home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
pascal
/
swag
/
egavga.swg
/
0181_Mode 13 Fast Clear Screen.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1995-03-26
|
318 b
|
16 lines
{
> How do I clear the screen fast (asm code please) in mode 13h
> (320x200x256)???????
}
Procedure ClearScreen(Col : Byte); assembler;
asm
mov ax, $A000
mov es, ax
mov cx, 32000
xor di, di
mov al, Col
mov ah, al
rep stosw
end;
{ that should do it. It'll clear it to Col }